package cn.zbmao.web.Timer;

import cn.zbmao.web.factory.ServicesFactory;
import cn.zbmao.web.util.DateUtil;
import org.apache.log4j.Logger;

import java.util.Date;
import java.util.TimerTask;

/**
 * Created with IntelliJ IDEA.
 * User: huangzheng
 * Date: 2014/11/7
 * Time: 17:56
 * To change this template use File | Settings | File Templates.
 */
public class SuccessfulDateTimerTasker extends TimerTask {
    private static Logger log= Logger.getLogger(SuccessfulDateTimerTasker.class);

    /**
     * 对付费用户进行统计中标单位的信息
     */
    @Override
    public void run() {
        log.info("统计计费用户中标单位开始,时间："+ DateUtil.getDateToStr(new Date()));
        ServicesFactory.getSuccessfulServices().putSuccessfulForUser();
        log.info("统计计费用户中标单位结束，时间："+ DateUtil.getDateToStr(new Date()));
    }

}
